package com.classichu.archdemo.data.remote.api;


import com.classichu.archdemo.data.remote.bean.NewsBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

public interface NewsApi {
    @GET("/api/4/news/latest")
    Call<NewsBean> getNewsList();
    @GET("/api/4/news/before/{date}")
    Call<NewsBean> getNewsList(@Path("date") String date);
    @GET("/api/4/news/{id}")
    Call<NewsBean> getNewsDetail(@Path("id") String id);
}
